﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SystemDoc_search_frame.aspx.cs" Inherits="Ccit.OA.SystemDoc.SystemDoc_search_frame" %>
<%@ Register TagPrefix="ccit" Namespace="Ccit.ServerControls" Assembly="Ccit.ServerControls.ActionForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>系统文档管理</title>
        <script language="javascript" type="text/javascript" src="../script/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="../script/StringClass_Ext.js"></script>
    <script language="javascript" type="text/javascript" src="../script/jsonlib.js"></script>
    <script language="javascript" src="../script/jwindow.js" type="text/javascript"></script>
    <script language="javascript" src="../script/jcontrol.js" type="text/javascript"></script>
    <script language="javascript" src="../script/jbase64.js" type="text/javascript"></script>
    <script language="javascript"> 
      function DoNodeTab(oType)
        {
            if(document.getElementById("lkClassCodetree").disabled == false) {
                ClassTreeButton();
                 var vClassType = document.getElementById("hidClassType").value; 
                 var oPageParam="classType="+vClassType+"&NodeTab="+oType;
                 var oEncodeParam=base64encode(oPageParam); 
                self.frames[0].document.location.href = "SystemDoc_search_tree.aspx?"+oEncodeParam;
            }
            return false;
        }
     
     function doFolder(oType)
     {
        if(document.getElementById("lkClassNametree").disabled == false)
        {
            folderButton();
            var vClassType = document.getElementById("hidClassType").value; 
            var oPageParam="classType="+vClassType+"&NodeTab="+oType;
            var oEncodeParam=base64encode(oPageParam); 
            self.frames[0].document.location.href = "SystemDoc_search_tree.aspx?"+oEncodeParam;
        }
        return false;
     }     
     
     //检索
     function doSearch()
     {
        if(document.getElementById("lkSearch").disabled == false)
        {
            SearchButton();
            self.frames[0].document.location.href = "SystemDoc_search_query.aspx" ;
            return false
        }
        else{
            return false;
        }
        return true;
     }     
     
     function SearchButton()
     {
            document.getElementById("lkClassNametree").disabled = false;
            document.getElementById("lkSearch").disabled = true;
            document.getElementById("lkClassCodetree").disabled = false;
     }
     
     function folderButton()
     {
         document.getElementById("lkClassNametree").disabled = true;
         document.getElementById("lkSearch").disabled = false;
         document.getElementById("lkClassCodetree").disabled = false;
     }
     
     function ClassTreeButton()
     {
         document.getElementById("lkClassNametree").disabled = false;
         document.getElementById("lkSearch").disabled = false;
         document.getElementById("lkClassCodetree").disabled = true;
     }

     function onPage()
     {
        //if(document.getElementById("hidClassType").value != "")
        //{
            var vClassType = document.getElementById("hidClassType").value;
            oPageParam = "classType="+vClassType;
            var oEncodeParam=base64encode(oPageParam); 
            document.getElementById("iFrmTree").src = "SystemDoc_search_tree.aspx?" + oEncodeParam;
            document.getElementById("iFrmEdit").src = "SystemDoc_search_list.aspx?" + oEncodeParam;
            
       // }
     }
    </script>
</head>
<body>
     <ccit:ActionForm id="form1" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
    </asp:ScriptManager> 
    <table class="tbToolbar" cellpadding="0" cellspacing="0" width="98%" align="center" id="TablePrint">
                    <tr>
                        <td align="left">
                            <div class="tbSeparator"></div>
                        </td>
                        <td width="40%" class="titlebar">  
                            文档管理 - 文档浏览
                        </td>      
                        <td align="right" class="titlebar">
                            <nobr> 
                            <asp:LinkButton runat="server" CssClass="linktext" ID="lkSearch" > <img src="../images/toolbar/search.gif" border="0" style="vertical-align:middle">检索</asp:LinkButton>
                            <asp:LinkButton runat="server" CssClass="linktext" ID="lkClassNametree" disabled><img src="../images/toolbar/folder_open.gif" border="0" style="vertical-align:middle">类别名称树</asp:LinkButton>
                            <asp:LinkButton runat="server" CssClass="linktext" ID="lkClassCodetree" ><img src="../images/toolbar/DETAIL.GIF" border="0" style="vertical-align:middle">类别编码树</asp:LinkButton>
						        &nbsp;&nbsp;&nbsp;</nobr></td>          
                        <td align="right" id="divMenu" style="display:none">
                        </td> 
                    </tr>
        </table>
       <table class="tableborder" cellpadding="0" cellspacing="0" width="98%" height="94.2%" align="center">
            <tr>
                <td width="25%">
                    <iframe id="iFrmTree" name="iFrmTree" height="99%" width="98%" scrolling="auto"
						    src="" style="BORDER-RIGHT: #000000 1px solid" frameborder="0"></iframe>
                </td>
                <td width="75%">
                    <iframe id="iFrmEdit" name="iFrmEdit" height="99%" width="98%" scrolling="yes"
						    src="" frameborder="0"></iframe>
                </td>
            </tr>
    </table>
    <input type="hidden" id="hidId"  runat="server"/>
    <input type="hidden" id="hidType"  runat="server"/>
    <input type="hidden" id= "hidWork" runat="server" />
    <input type="hidden" id="hidFiesName" runat="server" />
    <input type="hidden" id="hidClassType" runat="server" />
    
    
    </ccit:ActionForm>
</body>
<script language="javascript">

        //if(document.getElementById("hidClassType").value != "")
        //{
            var vClassType = document.getElementById("hidClassType").value;
            oPageParam = "classType="+vClassType;
            var oEncodeParam=base64encode(oPageParam); 
            document.getElementById("iFrmTree").src = "SystemDoc_search_tree.aspx?" + oEncodeParam;
            document.getElementById("iFrmEdit").src = "SystemDoc_search_list.aspx?" + oEncodeParam;
            
       // }
    </script>
</html>

